package net.sinodata.smartframework.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import net.sinodata.smartframework.constant.CommonConsts;

/**
 * Description: 系统间心跳检测
 * 
 * @author: yinliangyun
 * @since: 2021-5-18
 */
@RestController
public class HeartbeatController {
	
	private static final Logger logger = LoggerFactory.getLogger(HeartbeatController.class);

	/**
	 * Description: 系统间调用心跳接口 该接口无需shiro框架拦截 请求过来直接放行即可
	 * 
	 * @return
	 */
	@GetMapping("/heartbeat")
	public String getHeartbeatStatus() {
    	logger.info("HeartbeatController getHeartbeatStatus success");
        return CommonConsts.OK;
	}

}
